local args = ngx.req.get_uri_args()

if nil == args.act_id then
    ngx.say('{"code":10000,"message":"act_id不能为空"}')
    return
end

local act_id = args.act_id
local redis_client = require "lib.redis"
local redis = redis_client:new()
local raw, err = redis:get('act:'..act_id)

if nil == raw then
    ngx.say('{"code":10000,"message":"活动不存在", "error":"', err, '"}')
    return
end

ngx.say('{"code":200,"message":"success","data":', raw, '}')
